<HTML>
  <HEAD>
    <TITLE>JNDI Test WebApp</TITLE>
    <META http-equiv="Pragma" content="no-cache">
    <META http-equiv="Cache-Control" content="no-cache,no-store">
    <link rel="stylesheet" type="text/css" href="stylesheet.css"/>
  </HEAD>
<BODY>
<A HREF="http://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A>

<p>&nbsp;</p>
  <a  href="http://localhost:8080/">Home</a>
<center>
  <hr/>
 <span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span>
</center>

<P>
<h1>JNDI Test WebApp</h1>

<p>
This example shows how to configure and lookup resources such as DataSources, a JTA transaction manager and a java.mail.Session in JNDI. 
</p>

<h2>Preparation</h2>
<p>
To enable JNDI edit the start.ini or start.d/*.ini files to include "OPTIONS=jndi".
</p>
<p>
For the jetty distribution demos, jndi is already enabled in the start.d/900-demo.ini file and also enables the
jndi.demo option which includes some mock resources used by the test.
</p>
<p>The full source of this demonstration is available <a href="http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/tests/test-webapps/test-jndi-webapp">here</a>.</p>



<h2>Execution</h2>
<p>
Click <code>Test</code> to check the runtime lookup of the JNDI resources.
</p>
<form action="test" method="post">
      <button type="submit">Test</button>
</form>


<center>
  <hr/>
  <a href="http://www.eclipse.org/jetty"><img style="border:0" src="images/small_powered_by.gif"/></a>
</center>

</BODY>
</HTML>
